# -*- coding: UTF-8 -*-

print("python base practice")

split="############################"
print("number:"+split)
num_int=12
print(num_int**2)
print(int(num_int/2))

num_float=1.22
bool_true=True
bool_false=False
a,b,c= 1, 2, 3.3

print("type:"+split)
res=isinstance(num_float,bool)
print(res)

print("string:"+split)
str_val=r"\this a string"
print(str_val)
print(str_val[1:])
print(str_val[:-1])
print(str_val[1:-1])
print(str_val[1:3])

print("list:"+split)
list_val=[1,23,44,"22"]
print(list_val)
list_val[1]=122
print(list_val[1])
print(list_val[1:])
for e in list_val:
    print(e)

print("tuple:"+split)
tuple_val=(12,"22",33,{'name':"kala"})
print(tuple_val[len(tuple_val)-1])
print(tuple_val[-1])
print(len(tuple_val))
print(type(int(len(tuple_val))))
print(type(22))

print("set:"+split)
set_val=None
print(type(set_val))
set_val={12,33,44,55}
print(set_val)
set_val.add(11)
set_val.add(33)
set_val2=set_val.union({112,33})
print(set_val)
print(set_val2)


print("dict:"+split)
dict_val={'name':'this is a name.'}
print(dict_val)
print(repr(dict_val))
print(repr(dict))

"""
注释
"""
'''
注释2
'''
#注释3





